using System;
using System.Collections.Generic;
using System.Text;

namespace Noein.GeneticAlgorithm
{
    /// <summary>
    /// A collection of helper functions that don't fit in anywhere.
    /// </summary>
    class Global
    {
        public static Random random = new Random();


        public static float NextGene()
        {
            return (float)random.NextDouble() * 10f - 5f;
        }

        public static float NextGeneOffset()
        {
            float retval = (float)random.NextDouble();
            retval *= 2f;
            retval -= 1f;
            return retval;
        }
    }
}
